package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 角色和水管机构关联对象 sys_role_organ
 * 
 * @author hwd
 * @date 2023-03-16
 */
@Data
@TableName("sys_role_organ")
public class SysRoleOrgan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 角色ID */
    private Long roleId;

    /** 机构编码”ORG”+6位县级行政区划+2位乡级顺序号+2位村 */
    private String orgCd;

    public void setRoleId(Long roleId) 
    {
        this.roleId = roleId;
    }

    public Long getRoleId() 
    {
        return roleId;
    }
    public void setOrgCd(String orgCd) 
    {
        this.orgCd = orgCd;
    }

    public String getOrgCd() 
    {
        return orgCd;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("roleId", getRoleId())
            .append("orgCd", getOrgCd())
            .toString();
    }
}
